/**
 * @ITaskExecuter.as
 * 
 * @author sodaChen mail:sujun10#21cn.com
 * @version 1.0
 * <br>Copyright (C), 2012 ASFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame
 * <br>Date:2012-10-8
 */
package com.asframe.task
{
	import com.asframe.tick.ITick;

	/**
	 *
	 * @author sodaChen
	 * Date:2012-10-8
	 */
	public interface ITaskExecuter extends ITick
	{
		function getTask(taskName:String):ITask;
		/**
		 * 根据Task的名称删除一个task
		 * @param taskName:task名称
		 * @return 返回ITask实例，如果没有则返回null
		 */
		function removTask(taskName:String,isDispose:Boolean = true):ITask
		function setRunner(runner:IRunner):void;
		function runTask(task:ITask):Boolean;
		function clearTasks():void;
	}
}
